configuration SCA830C
{
	provides interface Read<uint16_t> as X;
	provides interface Read<uint16_t> as Temp;
	provides interface SplitControl as SensorControl;
}
implementation
{
	components SCA830P, SCA830LogicP, SCA830SpiP;
	
	components new Atm1281Spi0C(), NoLedsC, LedsC, HplAtm128GeneralIOC, MainC, new TimerMilliC() as Timer0, new TimerMilliC() as Timer1;
	SCA830SpiP.SPI -> Atm1281Spi0C;
	SCA830SpiP.SPIResource -> Atm1281Spi0C;
	SCA830SpiP.Enable -> HplAtm128GeneralIOC.PortB6;
	SCA830SpiP.RearbitDelay ->Timer1;
	SCA830SpiP.Leds -> NoLedsC;
	MainC.SoftwareInit -> SCA830SpiP.Init;
	
	SCA830LogicP.SCA830Spi -> SCA830SpiP;
	SCA830LogicP.Leds -> LedsC;
	SCA830LogicP.SecondByteDelay -> Timer0;
	MainC.SoftwareInit -> SCA830LogicP.Init;
	
	SCA830P.SCA830Logic -> SCA830LogicP;
	SCA830P.Temp = Temp;
	SCA830P.X = X;
	SensorControl = SCA830P.SensorControl;
}